import http from '@/utils/http';

const employee = {
  //员工视图
  query(params: any) {
    let url = '/admin/Employee/Query';
    return http.post(url, params);
  },
  //员工详情
  detail(id: Number) {
    let url = '/admin/Employee/Detail';
    let params = { id: id };
    return http.get(url, params);
  },
  //员工保存
  save(employee: Object) {
    let url = '/admin/Employee/Save';
    return http.post(url, employee);
  },
  //获取聊天界面的员工列表
  getChatEmployees() {
    let url = '/admin/Employee/GetChatEmployees';
    return http.get(url);
  },
};
export default employee;
